#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <iostream>
#include <vector>
#include "Job.h"
#include <mpi.h>

class Slave{
    
    public:
        Slave(int, int, int, int, Job *);	
		
    private:        
        std::vector<pthread_t> Threads;
        int id;
        int pool_size;
        int master_id;
        char *buffer; 
        Job* job;
        
        void WorkerThread(char*);
};
